package com.servletspringboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

@SpringBootApplication
/**
 * @ServletComponentScan
 * 用于扫描@WebServlet,@WebFilter,@WebListener..注解，并实例化对象
 *
 */
@ServletComponentScan

public class DemoApplication {

	public static void main(String[] args) {
		SpringApplication.run(DemoApplication.class, args);
	}

}
